home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #Tag 0x1064E
- #########################################################################
- # #
- # NETSCAPE startup utility #
- # Copyright (c) 1997 by Netscape Communications Corporation #
- # Copyright (c) 1998-1999 by Silicon Graphics, Inc #
- # #
- # File name: netscape #
- # #
- # Version: 1.1 #
- # #
- # Description: This script starts up Communicator software #
- # on an SGI workstation. #
- # #
- # Usage: To execute the script, type: #
- # #
- # ./netscape [ args ] #
- # #
- # Exit codes: 0 Successful completion #
- # #
- # Author(s): Brian Ostrom (briano@netscape.com) #
- # Victor Riley (var@sgi.com) #
- # #
- # Notes: * MOZILLA_HOME is /var/netscape/communicator #
- # #
- #########################################################################
- #
- PRODUCT="Communicator"
- MOZILLA_HOME=/var/netscape/communicator
- PATH=${MOZILLA_HOME}:${PATH}
- NPX_PLUGIN_PATH=${MOZILLA_HOME}/plugins32:${HOME}/.netscape/plugins32
- # to restore the new SGI font animation
- # change anim_cube.dat to animation.dat on the SGI_ANIM line
- #SGI_ANIM="${SGI_ANIM:-"${MOZILLA_HOME}/animation.dat"}"
- SGI_ANIM="${SGI_ANIM:-"${MOZILLA_HOME}/anim_cube.dat"}"
- export MOZILLA_HOME PATH SGI_ANIM NPX_PLUGIN_PATH
-
- #
- # Is this a first time startup? If so, create the .netscape dir
- # and put the default bookmark file in it.
- #
- if test ! -d ${HOME}/.netscape
- then
- # New install, or upgrade from 0.x or 1.x.
- mkdir ${HOME}/.netscape
- if test -f ${MOZILLA_HOME}/bookmark.htm
- then
- cp ${MOZILLA_HOME}/bookmark.htm ${HOME}/.netscape/bookmarks.html
- chmod 644 ${HOME}/.netscape/bookmarks.html
- fi
- fi
- #rm -f ${HOME}/.netscape/plugin-list
-
- #
- # Redirection of stdin, stdout, and stderr is needed to work around a
- # problem with netscape hanging if they weren't attached to something.
- # A side-effect is that we can't then capture the output, so don't do
- # redirection if the args include -version or -help.
- #
- args="$@"
- if test `expr " $args " : '.* -*-version .*$'` -gt 0 \
- || test `expr " $args " : '.* -*-help .*$'` -gt 0
- then
- netscape "$@"
- else
- netscape "$@" 0>/dev/null 1>&0 2>&0
- fi
-